package com.example.yjhadmin.service;

import com.yc.yjh.entity.Result;
import com.yc.yjh.entity.Results;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "yjh-match")
@RequestMapping("/results/results")
public interface ResultFeign {
    @RequestMapping("addResult")
    Result addResult(@RequestBody Results result);
    @RequestMapping("selectAllResult")
    List selectAllResult();
    @RequestMapping("selectByMid")
    List selectByMid(@RequestParam("mid") String mid);
}
